package com.module.TraceSource.vo;

import base.common.CUDEnum;

/**
 * TsEntEvent entity.
 * 
 * @author wult
 */

public class TsEntEvent implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;
	private String eventName;
	private String createrid;
	private String entrance;
	private Long flowid;
	private Integer seq;
	private String status;
	private Long sourceid;
	private String orgid;
	private String orgname;
	private String def;
	private String desc;
	private String isConfigType;
	private String flowName;
	private Integer oldSeq;
	private String typeName;//溯源操作事项类型名称
	private Long typeId;//溯源操作事项类型id
	private String imgUrl;
	private String imgUrl2;
	
	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	// Constructors
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	/** default constructor */
	public TsEntEvent() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getCreaterid() {
		return createrid;
	}

	public void setCreaterid(String createrid) {
		this.createrid = createrid;
	}



	public String getEntrance() {
		return entrance;
	}

	public void setEntrance(String entrance) {
		this.entrance = entrance;
	}

	public Long getFlowid() {
		return flowid;
	}

	public void setFlowid(Long flowid) {
		this.flowid = flowid;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Long getSourceid() {
		return sourceid;
	}

	public void setSourceid(Long sourceid) {
		this.sourceid = sourceid;
	}

	public String getOrgid() {
		return orgid;
	}

	public void setOrgid(String orgid) {
		this.orgid = orgid;
	}

	public String getOrgname() {
		return orgname;
	}

	public void setOrgname(String orgname) {
		this.orgname = orgname;
	}

	public String getDef() {
		return def;
	}

	public void setDef(String def) {
		this.def = def;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getIsConfigType() {
		return isConfigType;
	}

	public void setIsConfigType(String isConfigType) {
		this.isConfigType = isConfigType;
	}

	public String getFlowName() {
		return flowName;
	}

	public void setFlowName(String flowName) {
		this.flowName = flowName;
	}

	/**
	 * 从标准的操作事项中复制出一份企业操作事项
	 * @param defEvent
	 * @return
	 */
	public static TsEntEvent copyEntEvent(TsDefEvent defEvent) {
		TsEntEvent entEvent = new TsEntEvent();
		entEvent.setSeq(defEvent.getSeq());
		entEvent.setSourceid(defEvent.getId());
		entEvent.setDesc(defEvent.getDesc());
		entEvent.setStatus(CUDEnum.C.toString());
		entEvent.setEntrance(defEvent.getEntrance());
		entEvent.setTypeName(defEvent.getTypeName());
		entEvent.setIsConfigType(defEvent.getIsConfigType());
		return entEvent;
	}

	public Integer getOldSeq() {
		return oldSeq;
	}

	public void setOldSeq(Integer oldSeq) {
		this.oldSeq = oldSeq;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getImgUrl2() {
		return imgUrl2;
	}

	public void setImgUrl2(String imgUrl2) {
		this.imgUrl2 = imgUrl2;
	}

	
}